/*
* ==============================================================================
*  Name        : AudioStream.pan
*  Part of     : AudioStream
*  Created     : April 28, 2006 by Forum Nokia
*  Description : This file contains thread panics
*  Version     : 2.0
*
*  Copyright (c) 2006 - 2007 Nokia Corporation.
*  This material, including documentation and any related
*  computer programs, is protected by copyright controlled by
*  Nokia Corporation.
* ==============================================================================
*/

#ifndef __AUDIOSTREAM_PAN__
#define __AUDIOSTREAM_PAN__

#include <e32std.h>

inline void Panic(TInt aPanicCode)
	{
	_LIT(KApplicationName, "AudioStream");
	User::Panic(KApplicationName, aPanicCode);
	}

inline void PanicIfError(TInt aPanicCode)
	{
	if (aPanicCode != KErrNone)
		{
		Panic(aPanicCode);
		}
	}

#endif // __AUDIOSTREAM_PAN__

